package com.wkbb.common.enums;

public enum MsgSendTypeEnum {

    TEXT(1,"text"),//文本消息
    PICTURE(2,"image"),//图片消息
    VOICE(3,"voice"),//语音消息
    VIDEO(4,"video"),//视频消息
    FILE(5,"file"),//文件消息
    TEXT_CARD(6,"textcard"),//文本卡片消息
    NEWS(7,"news"),//图文消息
    MPNEWS(8,"mpnews"),//图文消息(mpnews)
    MARKDOWN(9,"markdown"),//markdown消息
    MINI(10,"miniprogram_notice"),//小程序通知消息
    MINI_NOTICE(11,"taskcard");//任务卡片消息

    private MsgSendTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;

    private String desc;

    public Integer getValue() {
        return this.value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (MsgSendTypeEnum mpAuthTypeEnum : MsgSendTypeEnum.values()) {
            if (mpAuthTypeEnum.getValue().intValue()==value) {
                return mpAuthTypeEnum.getDesc();
            }
        }
        return null;
    }
}
